package com.mangowang.module.main.ui;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.mangowang.lib.common.base.BaseActivity;
import com.mangowang.lib.common.util.StatusBarUtil;
import com.mangowang.module.main.R;
import com.mangowang.module.main.R2;

import butterknife.BindInt;
import butterknife.BindView;
import butterknife.ButterKnife;

public class AllowTypeActivity extends BaseActivity {

    @BindView(R2.id.back_iv)
    ImageView backIv;
    @BindView(R2.id.tv_title)
    TextView tvTitle;
    @BindView(R2.id.tv_one)
    TextView tv_one;
    @BindView(R2.id.tv_two)
    TextView tv_two;
    @BindView(R2.id.tv_three)
    TextView tv_three;
    @BindView(R2.id.tv_four)
    TextView tv_four;
    @BindView(R2.id.tv_five)
    TextView tv_five;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_allow_type);
        ButterKnife.bind(this);
        StatusBarUtil.setStatusBarLightMode(this, Color.parseColor("#FFFFFF"), true);
        tvTitle.setText("选择类型");
        backIv.setOnClickListener(v -> finish());

        tv_one.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.putExtra("name", "未激活机具-有激活返现");
            intent.putExtra("code","1");
            setResult(400, intent);
            finish();
        });
        tv_two.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.putExtra("name", "未激活机具-无激活返现");
            intent.putExtra("code","2");
            setResult(400, intent);
            finish();
        });
        tv_three.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.putExtra("name", "未激活商户-有激活返现");
            intent.putExtra("code","3");
            setResult(400, intent);
            finish();
        });
        tv_four.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.putExtra("name", "未激活商户-无激活返现");
            intent.putExtra("code","4");
            setResult(400, intent);
            finish();
        });
        tv_five.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.putExtra("name", "已激活商户");
            intent.putExtra("code","5");
            setResult(400, intent);
            finish();
        });
    }
}
